import { Poll } from '@/api/manager/poll/interface'
import { batchPollEntity, TvWallMemberItemEntity } from '@/api/manager/tvwall/interface'
import { Vmp, VmpMember, VmpMemberEntity, VmpEntity, revert_vmp, revert_vmp_member } from '@/api/manager/vmp/interface'
export { Vmp, VmpMember, Poll, revert_vmp, revert_vmp_member }
export type { VmpMemberEntity, VmpEntity }
export interface VmpViewData {
	style: number
	memberList: VmpMember[]
}
export interface SelectItem {
	label: string
	value: string
}
export const defaultData: Vmp = {
	mt_name_style: {
		font_color: '#FFFFFF',
		font_size: 1,
		position: 1,
	},
	broadcast: 1,
	except_self: 0,
	layout: 0,
	members: [],
	mode: 2,
	show_mt_name: 1,
	id: '',
	name: '',
	voice_hint: 1,
}
export const defaultVmpPollData: Poll = { id: '', mode: 1, keep_time: 30, members: [], name: '', num: 0 }
/**自身缓存的HDU */
export interface MyHduCache {
	hdu_id: string
	online: number
}
export type MyUsedStyleEntity = Array<{ id: string /** 电视墙风格id*/; name: string /**电视墙风格名称 */ }>
export type chnInfoEntity = { v_snd_chn_id: number; a_snd_chn_id: number }
export type ErrorCometd = {
	hdu_id: string
	hdu_style: string
	err_code: string
	style_id: string
}
export type TvWallBatchpollCometd = {
	style_id: string
	name: string
	show_mt_name: number
	batch_poll: batchPollEntity
}
export type TvWallCometd = {
	style_id: string
	/**是否显示电视墙别名，默认为0 0-否;1-是;*/
	show_mt_name: number
	name: string
	/**电视墙成员 */
	member: TvWallMemberItemEntity
	mode: number
}
